﻿@model MyUrnaVirtual.Models.AdminCandidatosViewModel
@{
    ViewBag.Title = "Editar";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Editar</h2>
<form class="pure-form pure-form-stacked" method="post" action="Editar">
    <fieldset>
        <legend>Datos del Candidato</legend>
        <div class="pure-g-r">
            <div class="pure-u-1-3">
                <label for="first-name">Nombre</label>
                @Html.EditorFor(x => x.NombreCandidato)
                @Html.ValidationMessageFor(x => x.NombreCandidato)
            </div>

            <div class="pure-u-1-3">
                <label for="last-name">Apellido</label>              
                @Html.EditorFor(x => x.ApellidoCandidato)
                @Html.ValidationMessageFor(x => x.ApellidoCandidato)
            </div>
            @Html.HiddenFor(x=>x.IdCandidato)

        </div>

        <button type="submit" class="pure-button pure-button-primary">Okay</button>
    </fieldset>
</form>
